package com.zhz.company.contract.request;

import com.zhz.common.tool.mybatisplus.base.core.contract.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 保存企业
 *
 * @author zhouhengzhe
 * @date 2023/3/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class CompanySaveRequest extends BaseRequest {

    @ApiModelProperty("公司名称")
    private String name;

    @ApiModelProperty("企业登录账号ID")
    private String managerId;

    @ApiModelProperty("公司ID")
    private String companyId;

    @ApiModelProperty("当前版本")
    private String version;

    @ApiModelProperty("续期时间")
    private LocalDateTime renewalDate;

    @ApiModelProperty("到期时间")
    private LocalDateTime expirationDate;

    @ApiModelProperty("公司地区")
    private String companyArea;

    @ApiModelProperty("公司地址")
    private String companyAddress;

    @ApiModelProperty("营业执照-图片ID")
    private String businessLicenseId;

    @ApiModelProperty("法人代表")
    private String legalRepresentative;

    @ApiModelProperty("公司电话")
    @Pattern(regexp = "[0-9-()（）]{7,18}",message = "电话号码格式错误")
    private String companyPhone;

    @ApiModelProperty("邮箱")
    @Pattern(regexp = "\\w[-\\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\\.)+[A-Za-z]{2,14}",message = "邮箱格式错误")
    private String mailbox;

    @ApiModelProperty("公司规模")
    private String companySize;

    @ApiModelProperty("所属行业")
    private String industry;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("当前余额")
    private BigDecimal balance;
}
